package org.jeecg.modules.demo.gmslopedata.service;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.demo.gmslopedata.entity.EvaluateCountDTO;
import org.jeecg.modules.demo.gmslopedata.entity.GmSlopeData;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.OutputStream;
import java.util.List;
import java.util.Map;

/**
 * @Description: 边坡数据
 * @Author: jeecg-boot
 * @Date:   2025-06-21
 * @Version: V1.0
 */
public interface IGmSlopeDataService extends IService<GmSlopeData> {

    Result<?> importExcelCustom(HttpServletRequest request, HttpServletResponse response, Class<GmSlopeData> gmSlopeDataClass);

    void calculateYValues(GmSlopeData gmSlopeData);

    ModelAndView exportWord(String id, String templateLeaveApprovalFile);

    List<EvaluateCountDTO> countEvaluateResults(String county, String town, String createBy);

    byte[] exportWord1(String id, String templateLeaveApprovalFile);

    Map<String, Object> getEvaluateStatistics(GmSlopeData gmSlopeData, Map<String, String[]> parameterMap);

//    void exportZip(List<GmSlopeData> dataList, OutputStream os);
}
